<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Config extends CI_Config
{
	/**
	 * Set a config file item
	 *
	 * @access	public
	 * @param	string	the config item key
	 * @param	string	the config item value
	 * @return	void
	 */
	function set_item($item, $value, $index = '')
	{
		if ($index == '')
		{
			$this->config[$item] = $value;
		}
		else
		{
			$this->config[$index][$item] = $value;
		}
	}
	function items()
	{
		return $this->config;
	}
	function site_url2($uri = '')
	{
		if (is_array($uri))
		{
			$uri = implode('/', $uri);
		}
	
		if (function_exists('get_instance'))
		{
			$CI =& get_instance();
			$uri = $CI->lang->localized($uri);
		}
	
		return parent::site_url($uri);
	}
}